#%RAML 1.0

    title: Party API
    baseUri: http://localhost:8081
    version: v1

    documentation:
      - title: mod-party API
        content: This documents the API calls that can be made to post party for users, and to get them

    types:
       errors: !include raml-util/schemas/errors.schema

    traits:
      validate: !include raml-util/traits/validation.raml
      language: !include raml-util/traits/language.raml
      pageable:  !include raml-util/traits/pageable.raml
      searchable: !include raml-util/traits/searchable.raml

    resourceTypes:
      collection: !include raml-util/rtypes/collection.raml
      collection-item: !include raml-util/rtypes/item-collection.raml
      collection-get: !include raml-util/rtypes/collection-get.raml
      collection-post: !include raml-util/rtypes/collection-post.raml
      collection-item-get: !include raml-util/rtypes/item-collection-get.raml
      post-empty-body: !include raml-util/rtypes/post-empty-body.raml

    /party/test:
       post:
              description:  这个是一个方便测试预留的接口
              body:
                application/json:
                   type: string
              responses:
                201:
                  description: "Returns a newly created item, with server-controlled fields like 'id' populated"
                  headers:
                    Location:
                      description: URI to the created <<resourcePathName|!singularize>> item
                  body:
                    application/json:

                400:
                  description: "Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response."
                  body:
                    text/plain:
                      example: |
                        "unable to add <<resourcePathName|!singularize>> -- malformed JSON at 13:3"
                500:
                  description: "Internal server error, e.g. due to misconfiguration"
                  body:
                    text/plain:
                      example: "Internal server error, contact administrator"

